Docker compose

Home > Software Notes > File formats

reference

healthchecks

Port open:

    healthcheck:
      test: nc -z localhost 8080
      interval: 1m
      start_period: 2m
      start_interval: 10s

HTTP listening:

    healthcheck:
      test: wget --spider localhost:8080
      interval: 1m
      start_period: 2m
      start_interval: 10s